﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace RBAC.APP
{
    public class User
    {
        #region Fields
        /// <summary>
        /// 用户Id
        /// </summary>
        private string userId;
        /// <summary>
        /// 用户Id
        /// </summary>
        public string UserId
        {
            get { return userId; }
            //set { userId = value; }
        }
        /// <summary>
        /// 忘记密码提问
        /// </summary>
        private string question;
        /// <summary>
        /// 忘记密码提问
        /// </summary>
        public string Question
        {
            get { return question; }
            set { question = value; }
        }
        /// <summary>
        /// 忘记密码回答
        /// </summary>
        private string answer;
        /// <summary>
        /// 忘记密码回答
        /// </summary>
        public string Answer
        {
            get { return answer; }
            set { answer = value; }
        }
        /// <summary>
        /// 上次登录时间
        /// </summary>
        private DateTime lastLoginTime;
        /// <summary>
        /// 上次登录时间
        /// </summary>
        public DateTime LastLoginTime
        {
            get { return lastLoginTime; }
            //set { lastLoginTime = value; }
        }
        /// <summary>
        /// 上次登录IP
        /// </summary>
        private string lastLoginIP;
        /// <summary>
        /// 上次登录IP
        /// </summary>
        public string LastLoginIP
        {
            get { return lastLoginIP; }
            //set { lastLoginIP = value; }
        }
        /// <summary>
        /// 登录次数
        /// </summary>
        private decimal loginCounts;
        /// <summary>
        /// 登录次数
        /// </summary>
        public decimal LoginCounts
        {
            get { return loginCounts; }
            //set { loginCounts = value; }
        }
        /// <summary>
        /// 最后修改用户Id
        /// </summary>
        private string lastUpdater;
        /// <summary>
        /// 最后修改用户Id
        /// </summary>
        public string LastUpdater
        {
            get { return lastUpdater; }
            //set { lastUpdater = value; }
        }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        private DateTime lastUpdateTime;
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastUpdateTime
        {
            get { return lastUpdateTime; }
            //set { lastUpdateTime = value; }
        }
        /// <summary>
        /// 是否激活
        /// </summary>
        private UserEnable enable;
        /// <summary>
        /// 是否激活
        /// </summary>
        public UserEnable Enable
        {
            get { return enable; }
            //set { enable = value; }
        }
        /// <summary>
        /// 用户姓名
        /// </summary>
        private string name;
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        /// <summary>
        /// 用户性别
        /// </summary>
        private int gender;
        /// <summary>
        /// 用户性别
        /// </summary>
        public int Gender
        {
            get { return gender; }
            set { gender = value; }
        }
        /// <summary>
        /// 用户邮件地址
        /// </summary>
        private string email;
        /// <summary>
        /// 用户邮件地址
        /// </summary>
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        /// <summary>
        /// 用户移动电话
        /// </summary>
        private string mobile;
        /// <summary>
        /// 用户移动电话
        /// </summary>
        public string Mobile
        {
            get { return mobile; }
            set { mobile = value; }
        }
        /// <summary>
        /// 办公室号码
        /// </summary>
        private string office;
        /// <summary>
        /// 办公室号码
        /// </summary>
        public string Office
        {
            get { return office; }
            set { office = value; }
        }
        /// <summary>
        /// 办公室电话
        /// </summary>
        private string officeTel;
        /// <summary>
        /// 办公室电话
        /// </summary>
        public string OfficeTel
        {
            get { return officeTel; }
            set { officeTel = value; }
        }
        /// <summary>
        /// 办公室传真
        /// </summary>
        private string officeFax;
        /// <summary>
        /// 办公室传真
        /// </summary>
        public string OfficeFax
        {
            get { return officeFax; }
            set { officeFax = value; }
        }
        /// <summary>
        /// MSN
        /// </summary>
        private string msn;
        /// <summary>
        /// MSN
        /// </summary>
        public string Msn
        {
            get { return msn; }
            set { msn = value; }
        }
        /// <summary>
        /// QQ
        /// </summary>
        private string qq;
        /// <summary>
        /// QQ
        /// </summary>
        public string Qq
        {
            get { return qq; }
            set { qq = value; }
        }
        /// <summary>
        /// BLOG
        /// </summary>
        private string blog;
        /// <summary>
        /// BLOG
        /// </summary>
        public string Blog
        {
            get { return blog; }
            set { blog = value; }
        }
        #endregion Fields

        #region Functions
        /// <summary>
        /// 修改用户信息
        /// </summary>
        public int Update()
        {
            throw new System.NotImplementedException();
        }
        #endregion Functions

        #region StaticFunctions
        /// <summary>
        /// 添加一个新用户
        /// </summary>
        /// <param name="newUser">新用户的对象</param>
        public static int Add(User newUser)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 删除一个用户
        /// </summary>
        /// <param name="userId">用户Id</param>
        public static int Delete(string userId)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 删除一个用户
        /// </summary>
        /// <param name="userObject">用户对象</param>
        public static int Delete(User userObject)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 激活一个账户
        /// </summary>
        /// <param name="userId">激活用户Id</param>
        public static int UserActivate(string userId)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 停用一个账户
        /// </summary>
        /// <param name="userId">停用账户Id</param>
        public static int UserDeactivate(string userId)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 获得一个用户
        /// </summary>
        /// <param name="userId">用户Id</param>
        public static User ReadUser(string userId)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 搜索用户
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <param name="userName">用户名</param>
        /// <param name="timeFrom">最后修改开始时间</param>
        /// <param name="timeTo">最后修改结束时间</param>
        /// <param name="userGender">用户性别</param>
        /// <param name="userEmail">用户电子邮件</param>
        /// <param name="userMobile">用户移动电话</param>
        /// <param name="userMSN">用户MSN</param>
        /// <param name="userQQ">用户QQ</param>
        /// <param name="userBlog">用户Blog</param>
        /// <param name="howMany">数量</param>
        public static List<User> SearchUsers(string userId, string userName, System.DateTime? timeFrom, System.DateTime? timeTo, int? userGender, string userEmail, string userMobile, string userMSN, string userQQ, string userBlog, int? howMany)
        {
            throw new System.NotImplementedException();
        }
        #endregion StaticFunctions

        #region UserRoleDepartment
        /// <summary>
        /// 用户的角色
        /// </summary>
        public List<UserRole> UserRole
        {
            get
            {
                throw new System.NotImplementedException();
            }
        }

        /// <summary>
        /// 用户的栏目
        /// </summary>
        public List<UserDepartment> UserDepartment
        {
            get
            {
                throw new System.NotImplementedException();
            }
        }

        /// <summary>
        /// 用户的角色
        /// </summary>
        public ArrayList UserRoleArrayList
        {
            get
            {
                throw new System.NotImplementedException();
            }
        }

        /// <summary>
        /// 用户的栏目
        /// </summary>
        public ArrayList UserDepartmentArrayList
        {
            get
            {
                throw new System.NotImplementedException();
            }
        }
        #endregion UserRoleDepartment
    }
}
